//
//  HomeItemDetailHeaderModel.m
//  Traveling
//
//  Created by Northwan on 15/6/10.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "HomeItemDetailHeaderModel.h"

#define FORMATTERSTR1 @"MM月dd日"
@implementation HomeItemDetailHeaderModel

-(NSString *)checkInTime{
    return [self stringWithFormatterStr:FORMATTERSTR1 date:self.checkInDate];
}

-(NSString *)checkOutTime{
    return [self stringWithFormatterStr:FORMATTERSTR1 date:self.checkOutDate];
}

-(NSString *)stringWithFormatterStr:(NSString *)formatterStr date:(NSDate *)date{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    formatter.dateFormat = formatterStr;
    return [formatter stringFromDate:date];
}
@end
